package cn.ycgogo.org.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * The type Page list.
 * 分页数据载体对象
 * @param <T> the type parameter
 * @author L1vezZ
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageList<T> {

    //给默认值是为了防止空指针
    private List<T> data = new ArrayList<>();
    //数据个数
    private Integer totals = 0;


}
